package com.turtle3d.visualizator;

import javax.media.j3d.BranchGroup;
import javax.media.j3d.Shape3D;
import javax.media.j3d.Transform3D;
import javax.media.j3d.TransformGroup;
import javax.vecmath.Matrix4f;

public abstract class VisualizatorAdapter implements Visualizator
{

	public abstract BranchGroup visualize(VisualData visualData);
	
	public TransformGroup createTransformGroup(Matrix4f transform, Shape3D object){
		TransformGroup tg = new TransformGroup();
		Transform3D t = new Transform3D();
		t.set(transform);
		tg.setTransform(t);
		tg.addChild(object);
		
		return tg;
	}

}
